Skip to main content
POST
/
v1
/
mcp-configs
/
{id}
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

const mcpConfigView = await client.mcpConfigs.update('id');

console.log(mcpConfigView.id);
{
  "id": "<string>",
  "name": "<string>",
  "endpoint": "<string>",
  "allowed_tools": [
    "<string>"
  ],
  "create_time_ms": 123,
  "account_id": "<string>",
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the McpConfig to update.

Body

application/json

Parameters for updating an existing McpConfig. All fields are optional - only specified fields will be updated.

name
string | null

New name for the McpConfig. Must be unique within your account.

endpoint
string | null

New target MCP server endpoint URL.

allowed_tools
string[] | null

New glob patterns specifying which tools are allowed. Examples: [''] for all tools, ['github.search_'] for specific patterns.

description
string | null

New description for this MCP configuration.

Response

McpConfig updated successfully.

An McpConfig defines a configuration for connecting to an upstream MCP (Model Context Protocol) server. It specifies the target endpoint and which tools are allowed.

id
string
required

The unique identifier of the McpConfig.

name
string
required

The human-readable name of the McpConfig. Unique per account.

endpoint
string
required

The target MCP server endpoint URL (e.g., 'https://mcp.example.com').

allowed_tools
string[]
required

Glob patterns specifying which tools are allowed from this MCP server (e.g., ['github.search_', 'github.get_'] or ['*'] for all tools).

create_time_ms
integer<int64>
required

Creation time of the McpConfig (Unix timestamp in milliseconds).

account_id
string | null

The account ID that owns this config.

description
string | null

Optional description for this MCP configuration.